package com.firewolf.mains;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.firewolf.s01.service.CalService;

public class ConsumerStartUp {
	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception {

		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });
		CalService cal = ctx.getBean(CalService.class);
		System.out.println(cal.add(5, 9));

	}
}
